var path = require('path');
var webpack = require('webpack');
var base =require('./webpack.config.base');

module.exports = Object.assign({}, base, {
  devServer: {
    historyApiFallback: true,
    noInfo: true,

    proxy: {
      '/api': {
        target: {
          host: 'localhost',
          protocol: 'http:',
          port: 3000,
        },
        changeOrigin: true,
        secure: false,
      },
    },
  },
  devtool: '#eval-source-map',
});
